/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

import request from '@/utils/request';

// 全寄加盟商基础信息列表
export async function getLeagueMangeList(params: {
  keywords?: string;
  current?: number;
  pageSize?: number;
}) {
  const { current, ...rest } = params;
  return request('/regiment/League/lists', {
    method: 'POST',
    data: {
      page: current,
      ...rest,
    },
  });
}

export async function addQjLeague(params: any) {
  return request('/regiment/League/add', {
    method: 'POST',
    data: params,
  });
}

export async function editQjLeague(params: any) {
  return request('/regiment/League/edit', {
    method: 'POST',
    data: params,
  });
}
